/*
 * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import type { ChannelTrace as _grpc_channelz_v1_ChannelTrace, ChannelTrace__Output as _grpc_channelz_v1_ChannelTrace__Output } from './ChannelTrace';
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp';
import { Long } from '@ohos/protobufjs';

/**
 * ServerData is data for a specific Server.
 */
export interface ServerData {
  /**
   * A trace of recent events on the server.  May be absent.
   */
  'trace'?: (_grpc_channelz_v1_ChannelTrace | null);
  /**
   * The number of incoming calls started on the server
   */
  'calls_started'?: (number | string | Long);
  /**
   * The number of incoming calls that have completed with an OK status
   */
  'calls_succeeded'?: (number | string | Long);
  /**
   * The number of incoming calls that have a completed with a non-OK status
   */
  'calls_failed'?: (number | string | Long);
  /**
   * The last time a call was started on the server.
   */
  'last_call_started_timestamp'?: (_google_protobuf_Timestamp | null);
}

/**
 * ServerData is data for a specific Server.
 */
export interface ServerData__Output {
  /**
   * A trace of recent events on the server.  May be absent.
   */
  'trace': (_grpc_channelz_v1_ChannelTrace__Output | null);
  /**
   * The number of incoming calls started on the server
   */
  'calls_started': (string);
  /**
   * The number of incoming calls that have completed with an OK status
   */
  'calls_succeeded': (string);
  /**
   * The number of incoming calls that have a completed with a non-OK status
   */
  'calls_failed': (string);
  /**
   * The last time a call was started on the server.
   */
  'last_call_started_timestamp': (_google_protobuf_Timestamp__Output | null);
}
